import { defineClientAppEnhance } from '@vuepress/client'
// import { nextTick } from "vue";
import { useMediumZoom } from "@vuepress/plugin-medium-zoom/lib/client";
import { usePageData } from '@vuepress/client'
import type { PageData } from '@vuepress/client'
//import log from './utils/log';

export default defineClientAppEnhance(async ({ app, router, siteData }) => {
    // const page = usePageData<PageData>()
    // console.log(page)
    // const zoom = useMediumZoom();
    // // 手动调用 `refresh` 来让这些新图片支持缩放
    // nextTick(() => {
    //   zoom.refresh();
    // });
  // log("原神地图","Docs",
  //   [
  //     {
  //       VuePressCore: globalThis.__VERSION__,
  //       VueVersion: app.version,
  //       isDEV: globalThis.__DEV__,
  //       isSSR: globalThis.__SSR__
  //     }
  //   ],
  //   "📝\u0020地图前端团队欢迎各位同学加入: https://yuanshen.site/docs/join.html"
  // );
  console.log(app,router,siteData);
})

